<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglibs.jsp"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
		<title>广东出入境检验检疫协会检验鉴定分会</title>
		<link rel="stylesheet" type="text/css" href="${ctx }/css/index_1_stylecss.css"/>
		<link href="${ctx }/css/slideshow.css" rel="stylesheet" />
 <script src="${ctx }/js/slideshow.js" type="text/javascript"></script>
	</head>
	<body>
			<div class="container">

					<!-- 头部 HTML嵌入-->
			    <iframe src="${ctx }/base/base_head2.jsp" name="header" width="1000px" height="216px"   *height="198px" scrolling="no" frameborder="no">
                </iframe>
                <!-- 头部 HTML嵌入结束-->

                <div id="maincontent" class="maincontent">
                

                <!-- 幻灯片开始 -->



		                   <div id="maincontent_left_picture" class="maincontent_left_picture">
		                       <div class="comiis_wrapad" id="slideContainer">
							        <div id="frameHlicAe" class="frame cl">
							            <div class="temp"></div>
							            <div class="block">
							                <div class="cl"> 
							                    <ul class="slideshow" id="slidesImgs">
							  
							                        <li><a href="${ctx }/base/newsphoto!show.action?id=${newsphotoList[0].id}"  >
							                            <img src="${ctx }/photo/${newsphotoList[0].picturepath}" width="381" height="251" alt="" /></a><span class="title"><span style="display:inline-block;max-width:265px;text-overflow: ellipsis;overflow: hidden;">${fn:substring(newsphotoList[0].title, 0, 18)}</span></span></li>
							                        <li><a href="${ctx }/base/newsphoto!show.action?id=${newsphotoList[1].id}" >
							                            <img src="${ctx }/photo/${newsphotoList[1].picturepath}" width="381" height="251" alt="" /></a><span class="title"><span style="display:inline-block;max-width:265px;text-overflow: ellipsis;overflow: hidden;">${newsphotoList[1].title}</span></span></li>
							                        <li><a href="${ctx }/base/newsphoto!show.action?id=${newsphotoList[2].id}" >
							                            <img src="${ctx }/photo/${newsphotoList[2].picturepath}" width="381" height="251" alt="" /></a><span class="title"><span style="display:inline-block;max-width:265px;text-overflow: ellipsis;overflow: hidden;">${newsphotoList[2].title}</span></span></li>
							                        <li><a href="${ctx }/base/newsphoto!show.action?id=${newsphotoList[3].id}"  >
							                            <img src="${ctx }/photo/${newsphotoList[3].picturepath}" width="381" height="251" alt="" /></a><span class="title"><span style="display:inline-block;max-width:265px;text-overflow: ellipsis;overflow: hidden;">${newsphotoList[3].title}</span></span></li>
							                         
							                    </ul>
							                </div>
							                <div class="slidebar" id="slideBar">
							                    <ul>
							                        <li class="on">1</li>
							                        <li>2</li>
							                        <li>3</li>
							                        <li>4</li>

							                    </ul>
							                </div>
							            </div>
							        </div>
							    </div>

		                   </div>
                   <!-- 幻灯片结束 -->

                   <!-- 上侧新闻开始 -->

                           <div id="maincontent_right_picture_news" class="maincontent_right_picture_news">
                              		<div class="more" id="more">
                                 			<a href="${ctx }/base/newsphoto!list.action">更多&gt&gt</a>
                                 	</div>

	                              <ul id="menus_news" >
	                   <s:iterator value="newsphotoList" var="a"> 
							 
								 <li><a href="${ctx }/base/newsphoto!show.action?id=${a.id}" title="${a.title}"><s:if test="showred==1"><span style="color:red;">${a.title}</span></s:if><s:else>${a.title}</s:else></a><s:if test="shownew==1"><div class="list"  id="hot"></div></s:if><span class="time" name="${fn:substring(a.editTime, 0, 10)}">(${fn:substring(a.editTime,2, 10)})</span></li>
								
						</s:iterator>
			                           
									</ul>	
                          </div>
                           <!-- 上侧新闻结束 --> 


                             <!-- 中间新闻开始 -->
                           <div class="middle_menus_news" id="middle_menus_news">
                                           <div class="middle_more">
	                                           <a href="${ctx }/base/announcement!list.action">更多&gt&gt</a>
	                                       </div>
	                                       <div class="middle_more_2">
	                                           <a href="${ctx }/base/trends!list.action">更多&gt&gt</a>
	                                       </div>	
	                                       <div id="m"></div>

                                          <ul id="news_middle_left"class="news_middle_left">
					                           <s:iterator value="announcementList" var="a"> 
							 
								 <li><a href="${ctx }/base/announcement!show.action?id=${a.id}"title="${a.title}"><s:if test="showred==1"><span style="color:red;">${a.title}</span></s:if><s:else>${a.title}</s:else></a><s:if test="shownew==1"><div class="list"  id="hot"></div></s:if><span class="time" name="${fn:substring(a.editTime, 0, 10)}">(${fn:substring(a.editTime, 2, 10)})</span></li>
								
						</s:iterator>
	                                       </ul>
	                                        <ul id="news_middle_right"class="news_middle_right">
					                             <s:iterator value="trendsList" var="a"> 
							 
								 <li><a href="${ctx }/base/trends!show.action?id=${a.id}" title="${a.title}"><s:if test="showred==1"><span style="color:red;">${a.title}</span></s:if><s:else>${a.title}</s:else></a><s:if test="shownew==1"><div class="list"  id="hot"></div></s:if><span class="time" name="${fn:substring(a.editTime, 0, 10)}">(${fn:substring(a.editTime, 2, 10)})</span></li>
								
						</s:iterator>
	                                       </ul>
	                                       <div class="accept_top">
				                                   <div class="accept">
				                                       <a href="${ctx }/base/application-for-member-ship!show.action">会员服务</a>
				                                   </div>
				                                   <div class="accept_pic">
				                                   </div>
				                                   
				                                   
				                                   
				                                   </div>
                                        <div class="images_logn" >
                                             <ul class="images_ul">
                                             <li><a href="${ctx }/base/application-for-member-ship!show.action">入会申请</a></li>
                                             <li><a href="${ctx }/base/staticmessage!show.action?type=2" target="_top">入会程序</a></li>
                                             <li><a href="${ctx }/base/staticmessage!show.action?type=3" target="_top">收费标准</a></li>



                                             </ul>
                                              <!-- 此处有改变 -->
                                           

                                           </div>
 

	                                       
                            </div>
                            <!-- 中间新闻结束 -->

                              

                              
                               
                            <!-- 改动过 -->
                               <ul id="subnav"class="subnav">
					                            <li ><a href="${ctx }/base/member!list.action?sort=5" class="deep" onMouseMove="JavaScript:ChangeDiv('0','JKDiv_',4)" ><span style="color:black;"></span>会员风采</a></li>
												<li ><a href="${ctx }/base/member!list.action?sort=1" onMouseMove="JavaScript:ChangeDiv('1','JKDiv_',4)" >副会长单位</a></li>
												<li ><a href="${ctx }/base/member!list.action?sort=2" onMouseMove="JavaScript:ChangeDiv('2','JKDiv_',4)" >常务理事单位</a></li>
											    <li ><a href="${ctx }/base/member!list.action?sort=3" onMouseMove="JavaScript:ChangeDiv('3','JKDiv_',4)" >理事单位</a></li>
												<li ><a href="${ctx }/base/member!list.action?sort=4" onMouseMove="JavaScript:ChangeDiv('4','JKDiv_',4)" >一般会员单位</a></li>
												
												
	                             </ul>
	                             <div class="banner">
	                              </div>
	                                <div class="banner_more">
	                             	<a href="${ctx }/base/member!list.action?sort=5">更多&gt&gt</a>

	                             </div>
	                            
                                 <div class="news_bottom" id="JKDiv_0" style ="display:block;">
                        <s:iterator value="memberList0" var="a"> 
							 
								 <li><a href="${ctx }/base/member!show.action?id=${a.id}"title="${a.name}">${a.name}</a><div   id="hot"></div><span>(${fn:substring(a.editTime, 2, 10)})</span></li>
								
						</s:iterator>

                                </div>
                                 <div class="news_bottom" id="JKDiv_1"style ="display:none;">
                       <s:iterator value="memberList1" var="a"> 
							 
								 <li><a href="${ctx }/base/member!show.action?id=${a.id}"title="${a.name}">${a.name}</a><div   id="hot"></div><span>(${fn:substring(a.editTime, 2, 10)})</span></li>
								
						</s:iterator>


                                </div>
                                 <div class="news_bottom" id="JKDiv_2" style ="display:none;">
                        <s:iterator value="memberList2" var="a"> 
							 
								 <li><a href="${ctx }/base/member!show.action?id=${a.id}"title="${a.name}">${a.name}</a><div   id="hot"></div><span>(${fn:substring(a.editTime, 2, 10)})</span></li>
								
						</s:iterator>

                                </div>
                                 <div class="news_bottom" id="JKDiv_3" style ="display:none;">

                        <s:iterator value="memberList3" var="a"> 
							 
								 <li><a href="${ctx }/base/member!show.action?id=${a.id}"title="${a.name}">${a.name}</a><div   id="hot"></div><span>(${fn:substring(a.editTime, 2, 10)})</span></li>
								
						</s:iterator>


                                </div>
                                 <div class="news_bottom" id="JKDiv_4" style ="display:none;">

                        <s:iterator value="memberList4" var="a"> 
							 
								 <li><a href="${ctx }/base/member!show.action?id=${a.id}"title="${a.name}">${a.name}</a><div   id="hot"></div><span>(${fn:substring(a.editTime, 2, 10)})</span></li>
								
						</s:iterator>

										

                                </div>
                                <!-- 改动过 结束  -->
                                <div class="down">
                                   <div class="down_1">
                                       <a href="${ctx }/base/file-upload!list.action">资料下载 </a>        
                                       <div class="banner_more1">
	                             	<a href="${ctx }/base/file-upload!list.action"><span style="font-size:15px">更多&gt&gt</span></a>

	                             </div>
	                              
                                   </div>  
	                                         
	                                    
                                   <div class="pic_down">
                                   </div>
                                </div>
                                <div class="news_bottom_right">

                                       <s:iterator value="filesList" id="a">  
                   <s:url var="url" action="download">
                   <s:param name="uploadname">${a.name}</s:param>
                   <s:param name="filename">${a.path}</s:param>
         </s:url>                    
										<li title="${a.name}">       <s:a href="%{url}">        ${a.name} </s:a>     </li>
				 </s:iterator>
										

                                </div>
                               <!--   <div class="copyright">
                                  <p>版权所有：广东出入境检验检疫协会</p>
                                  <p>地址：广东省广州市珠江新城花城大道66号   &nbsp;邮政编码：510623 联系电话：020—38290189&nbsp;020—38290199</p>
                                  <p> &nbsp; &nbsp;技术支持:广州创易谷网络科技有限公司</p>
                                </div> -->
                <!-- 底部 HTML嵌入-->
                             
			    <iframe src="${ctx }/base/base_foot.jsp" name="foot" width="1000px" height="128px"   *height="100px" scrolling="no" frameborder="no">
                </iframe>
 
                <!--底部 HTML嵌入结束-->
                                








               







         </div>
</div>


                
           
  <script type="text/javascript">
					        SlideShow(3000);
					        
   
  </script>
					    <script>
		//获取dom元素
		var getdom = function(){
			this.$ = function(id){
				return document.getElementById(id);
			}

			this.getElementsByClass = function(searchClass,node,tag) {
		        var classElements = new Array();
		        if ( node == null )
		                node = document;
		        if ( tag == null )
		                tag = '*';
		        var els = node.getElementsByTagName(tag);
		        var elsLen = els.length;
		        var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
		        for (i = 0, j = 0; i < elsLen; i++) {
		                if ( pattern.test(els[i].className) ) {
		                        classElements[j] = els[i];
		                        j++;
		                }
		        }
		        return classElements;
		    }
		    this.GetCurrentStyle = function(obj, prop){
			    if (obj.currentStyle){ //IE
			        return obj.currentStyle[prop];
			    }
			    else if (window.getComputedStyle){ //非IE
			        propprop = prop.replace (/([A-Z])/g, "-$1");
			        propprop = prop.toLowerCase ();
			        return document.defaultView.getComputedStyle(obj,null)[propprop];
			    }
			    return null;
			}
		}
		var newdom = new getdom;
		// var time = newdom.getElementsByClass("time")[0];
		hot("time","list","hot",7)//第一个参数是存放时间的标签，第二个参数要标志热门的标签,第三个函数是要插入的class
		function hot(gettime,show_hot,classname){
			//获取节点
			var gettime = newdom.getElementsByClass(gettime),
				show_hot = newdom.getElementsByClass(show_hot),
				len_gettime = gettime.length,
				arr = [];
				
			var day = day ? day : 7;


			//当前时间
			var now = new Date(),
				now_year = now.getFullYear(),
				now_month = now.getMonth() + 1,
				now_day = now.getDate();


			for (var i = 0; i < len_gettime; i++) {
				var file_time = gettime[i].getAttribute("name");
				arr = file_time.split("-");
				//文件上传时间
				var file_year = arr[0],
					file_month = arr[1],
					file_day = arr[2];

				if(now_year == file_year){
					if(now_month == file_month){
						if(now_day - file_day <= day){
							show_hot[i].className += " " + classname;
						}
						
					}
				}
			};
		}
		
		

	</script>
 




	</body>
</html>